import request from "../utils/request"
/**
 * 查询楼宇
 * @param {*} params 
 * @returns 
 */
export const setPremises = (params) => request.get('/park/building' , { params})

/**
 * 删除楼宇
 * @param {*} id 
 * @returns 
 */
export const delPremises = (id) => request.delete(`/park/building/${id}`)

/**
 * 编辑楼宇
 * @param {*} params 
 * @returns 
 */
export const editPremises = (data) => request.put('/park/building' , data)

/**
 * 添加楼宇
 * @param {*} params 
 * @returns 
 */
export const addPremises = (data) => request.post('/park/building' , data)

/**
 * 获取楼宇详情
 * @param {*} id 
 * @returns 
 */
export const upPremises = (id) => request.get(`/park/building/${id}`)
